#!/bin/bash


#Example command line string
#java -jar -cp <classpath>
# -Djava.rmi.server.codebase=<file:///.../.jar> 
#-Djava.security.policy=file:///home/michele/workspace/TESI-Source/src/security.policy  
#deploy/cloudsystemNode.jar


CLASSPATH=`pwd`"/bin/"
FLAG_CODEBASE="file://"`pwd`"/deploy/cloudsystemNode.jar"
FLAG_POLICY="file://"`pwd`"/security.policy"

TARGET="deploy/cloudsystemNode.jar"

echo "classpath: "$CLASSPATH
echo "codebase: "$FLAG_CODEBASE
echo "security: "$FLAG_POLICY

java -jar -cp $CLASSHPATH -Djava.rmi.server.hostname=`hostname` -Djava.rmi.server.codebase=$FLAG_CODEBASE -Djava.security.policy=$FLAG_POLICY  $TARGET $@

